package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.dto.MerchantShoppingCartDto;
import com.rockcent.mall.lib.dto.ShoppingCartDto;
import com.rockcent.mall.lib.dto.ShoppingCartProductDto;

import java.util.List;

/**
 * Created by zhangjh on 2016/10/12.
 */
public interface ShoppingCartRepositoryCustom {
    /**
     * 批量删除购物车 heweiping
     */
    Integer deleteByCustomerIdAndProductIds(Long customerId, List<Long> productIds);

    /**
     * 购物车获取商家
     */
    List<MerchantShoppingCartDto> getShoppingCart(Long customerId);

    /**
     * 购物车获取商品
     */
    List<ShoppingCartProductDto> getProduct(Long customerId, Long merchantId);
}
